# 打印"hello Python"五次
for i in range(5):
    print("hello Python")

# 计算1+2+3+……+100的和
result = 0
for i in range(1, 101):
    result += i
print("1+2+3+……+100总和为：", result)

# 计算1！+2！+3！+……+n!
result = 0
for i in range(1, 10):
    result1 = 1
    for j in range(1, i+1):
        result1 *= j
    print(i, "!=", result1, sep='')
    result += result1
print("1！+2！+3！+……+n!总和为：", result)


